<?php 
namespace app\index\validate;

use think\Validate;


class Index extends validate
{
	  protected $rule =   [
        'username'  => 'require|max:25|token',
        'password'   => 'require|between:5,16|alphaNum',
   
    ];
    
    protected $message  =   [
        'name.require' => '名称必须',
        'name.max'     => '名称最多不能超过25个字符',
        'password.require'   => '密码必须',
        'password.alphaNum'   => '密码必须是字母+数字',
        'password.between'  => '密码只能在5-16之间',
        
    ];
    protected $scene = [
        'edit'  =>  ['username','password'],
    ];
	
}




 ?>